-- GENERATED SPELL FOR [Grimscale Seer] --


function spell0_15950(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(26661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15950', 10332, 1)
end

function spell1_15950(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15950', 3000, 1)
end

function Sorts_15950(pUnit, Event)
local choix_sorts_15950 = math.random(0, 1)
if choix_sorts_15950 == 0 then
pUnit:RegisterEvent('spell0_15950', 1, 1)
end
if choix_sorts_15950 == 1 then
pUnit:RegisterEvent('spell1_15950', 1, 1)
end
end

function mob15950_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15950', math.random(1500, 3000), 1)
end

function mob15950_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15950_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15950_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15950, 1, 'mob15950_Action')
RegisterUnitEvent(15950, 2, 'mob15950_Leave')
RegisterUnitEvent(15950, 3, 'mob15950_Kill')
RegisterUnitEvent(15950, 4, 'mob15950_Die')
